import unittest

from UnionFind import UnionFind


class MyTestCase(unittest.TestCase):
    def test_something(self):
        self.assertEqual(True, False)  # add assertion here


class TestUnionFind(unittest.TestCase):
    uf = UnionFind(100)
    uf.union(1, 2)
    uf.union(3, 4)
    uf.union(5, 6)
    uf.union(1, 6)
    uf.union(22, 24)
    uf.union(3, 26)
    uf.union(36, 24)
    print(uf.find(6))
    print(uf.value(6))
    print(uf.find(22))
    print(uf.value(22))


if __name__ == '__main__':
    unittest.main()
